home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / shell / tsbgex / src / fish / bios.asm next >
Encoding:
Assembly Source File  |  1994-11-16  |  567 b   |  44 lines

  1.     assume    cs:text
  2. text    segment para public 'CODE'
  3.  
  4.     public    _setfs
  5. _setfs    proc    near
  6.     mov    ax,4[esp]
  7.     mov    fs,ax
  8.     ret
  9. _setfs    endp
  10.  
  11.     public    _getpallet
  12. _getpallet proc    near
  13.     push    edx
  14.     mov    edx,8[esp]
  15.     mov    ax,0110H
  16.     push    fs
  17.     mov    fs,ax
  18.     mov    ax,0501H
  19.     call    pword ptr fs:[01c0H]
  20.     pop    fs
  21.     pop    edx
  22.     ret
  23. _getpallet endp
  24.  
  25.     public    _putfs
  26. _putfs    proc    near
  27.     push    ebx
  28.     mov    eax,8[esp]
  29.     mov    ebx,12[esp]
  30.     mov    fs:[eax],ebx
  31.     pop    ebx
  32.     ret
  33. _putfs    endp
  34.  
  35.     public    _getfs
  36. _getfs    proc    near
  37.     mov    eax,4[esp]
  38.     mov    eax,fs:[eax]
  39.     ret
  40. _getfs    endp
  41.  
  42. text    ends
  43.     end
  44.